<script setup>
const props = defineProps({
  showTime: {
    type: Boolean,
    default: false, //advertising  cloud
  },
  itemTitil: {
    type: String,
    default: '', //advertising  cloud
  },
})
const onClickLeft = () => {}
</script>

<template>
  <div class="home-top">
    <div class="home-top-header">
      <div class="home-top-left">{{ itemTitil }}</div>
      <div class="home-top-center" v-if="showTime"></div>
      <div class="home-top-right">
        <van-badge :content="''">
          <van-image
            width="2rem"
            height="2rem"
            round
            src="https://sysgamer.com/gameres/pic/banner1.jpg"
          />
        </van-badge>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.home-top {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  background: #fff;
}
</style>
<style lang="scss">
.home-top {
  .van-field__right-icon {
    margin-right: 0;
  }
  &-header {
    display: flex;
    padding: 20px 10px 0px 14px;
    align-items: baseline;
  }

  &-left {
    font-weight: bold;
    font-size: 32px;
    color: #000000;
    flex: 1;
    display: flex;
    align-items: center;
    // justify-content: center;
    // padding-left: 1vw;
  }
  &-center {
    font-size: 22px;
    color: #818181;
    flex: 3;
    padding-left: 0px;
  }
  &-right {
    display: flex;
    position: absolute;
    bottom: 6px;
    right: 20px;
  }
}
</style>
